package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "kook.bot")
public class KookProperties {
    private String token;
    private WebSocket websocket = new WebSocket();

    @Data
    public static class WebSocket {
        private int compress;
        private int resumeTimeout;
        private int heartbeatInterval;
        private int heartbeatTimeout;
    }
}